﻿<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:set var="userAgent" value="${header['User-Agent']}" />
<fmt:setBundle basename="com.kolon.config.properties.config" var="config" />
<c:if test="${fn:indexOf(userAgent, 'Android') != -1}"><c:set var="platForm" value="Android" /></c:if>
<c:if test="${fn:indexOf(userAgent, 'iPhone') != -1}"><c:set var="platForm" value="iPhone" /></c:if>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, height=device-height,  initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>코오롱</title>
<link rel="stylesheet" type="text/css" href="${requestScope.contextPath}/css/import.css" />
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-ui-1.8.14.custom/js/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-ui-1.8.14.custom/js/jquery-ui-1.8.14.custom.min.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/common.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-blockui/jquery.blockUI.js"></script>
<script type="text/javascript">
	function changeTab(tp) {
		if (tp == '1') {
			$('.common_tab').show();
			$('.emp_tab').hide();
			$('#tb1').attr('src', '${requestScope.contextPath}/images/main/tab1_over.gif');
			$('#tb2').attr('src', '${requestScope.contextPath}/images/main/tab/${sessionScope.SESSION_USER_INFO.CompanyCD}.gif');
		} else {
			$('.emp_tab').show();
			$('.common_tab').hide();
			$('#tb1').attr('src', '${requestScope.contextPath}/images/main/tab1.gif');
			$('#tb2').attr('src', '${requestScope.contextPath}/images/main/tab/${sessionScope.SESSION_USER_INFO.CompanyCD}_over.gif');
		}
	}
</script>
</head>
<body>
	<div id="wrap">
		<div class="android_main">
			<div class="tab3">
				<ul>
					<li><a href="#"><img src="${requestScope.contextPath}/images/main/tab1_over.gif" alt="공통" onclick="changeTab('1');" id="tb1" /></a></li>
					<li><a href="#"><img src="${requestScope.contextPath}/images/main/tab/${sessionScope.SESSION_USER_INFO.CompanyCD}.gif" alt="${sessionScope.SESSION_USER_INFO.companyname}" onclick="changeTab('2');" id="tb2" /></a></li>
				</ul>
			</div>
			<div class="icon">
				<ul class="common_tab">
				<c:forEach items="${servList}" var="servInfo" varStatus="status">
					<c:choose>
					<c:when test="${servInfo.SERV_TP eq 'B'}">
						<c:if test="${platForm eq 'Android' and servInfo.FRF_TP eq 'Android'}">
						<li><a href="<fmt:message bundle="${config}" key="domain.iis.url" /><fmt:message bundle="${config}" key="app.file.Android.path" />${servInfo.FILE_S_NM}"><img src="${requestScope.contextPath}<fmt:message bundle="${config}" key="service.icon.url" />${servInfo.IMG_NM}" alt="${servInfo.SERV_NM}" /></a><span>${servInfo.SERV_NM}</span></li>
						</c:if>
						<c:if test="${platForm eq 'iPhone' and servInfo.FRF_TP eq 'iPhone'}">
						<li><a href="${servInfo.APP_NM}://sendurl?msg=[test]&url=[<fmt:message bundle="${config}" key="domain.iis.url" />]&appid=[com.kolombenit.KOLONAPPSE]&appver=[${servInfo.FRF_VER}]&appdown=[itms-services://?action=download-manifest&url=<fmt:message bundle="${config}" key="domain.iis.url" /><fmt:message bundle="${config}" key="app.file.iPhone.path" />${servInfo.FILE_S_NM}]"><img src="${requestScope.contextPath}<fmt:message bundle="${config}" key="service.icon.url" />${servInfo.IMG_NM}" alt="${servInfo.SERV_NM}" /></a><span>${servInfo.SERV_NM}</span></li>
						</c:if>
					</c:when>
					<c:otherwise>
					<li><a href="${servInfo.LNK_URL}"><img src="${requestScope.contextPath}<fmt:message bundle="${config}" key="service.icon.url" />${servInfo.IMG_NM}" alt="${servInfo.SERV_NM}" /></a><span>${servInfo.SERV_NM}</span></li>
					</c:otherwise>
					</c:choose>
				</c:forEach>
				</ul>
				<ul class="emp_tab" style="display: none;">
				</ul>
			</div>
		</div><!-- // content -->
	</div><!-- // wrap -->
</body>
</html>
